package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.pojo.Permission;

public interface PermissionService {
    //分页查询
    public PageResult findPage(QueryPageBean queryPageBean);
    //增加权限
    public void add(Permission permission);
    //通过id查询权限
    public Permission findById(Integer id);
    //编辑权限
    public void edit(Permission permission);
    //删除权限
    public void delete(Integer id);
    //通过权限名查询权限
    public Permission findByName(String name);
    //通过权限关键词查询权限
    public Permission findByKeyword(String keyword);
}
